﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace NewRen.Models
{
    public class News
    {
        /// <summary>
        ///  逻辑ID
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        ///  标题
        /// </summary>
        [StringLength(100)]
        public string Title { get; set; }

        /// <summary>
        ///  内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 时间 
        /// </summary>
        public DateTime DateTime { get; set; }


        /// <summary>
        /// 网页URL
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 来源
        /// </summary>
        public string Source { get; set; }

        /// <summary>
        /// 分类
        /// </summary>
        [StringLength(50)]
        public string Category { get; set; }

        /// <summary>
        /// 地区
        /// </summary>
        public string Area { get; set; }

        /// <summary>
        /// 概要
        /// </summary>
        public string Summary { get; set; }

        /// <summary>
        /// 访问量
        /// </summary>
        public int Browses { get; set; }
    }
}